package com.cgc.venus.server.core.k8s.inter;
import com.cgc.venus.server.core.exception.VenusException;
import io.fabric8.kubernetes.api.model.PersistentVolumeClaim;

import java.util.List;
/**
 * Created by 业哥 on 2017/12/5.
 */
public interface K8sStorageService {
    public List<PersistentVolumeClaim> getPersistentVolumeClaims(String namespace)throws VenusException;
    public PersistentVolumeClaim getPersistentVolumeClaim(String pvcName,String namespace)throws VenusException;
    public Boolean setPersistentVolumeClaim(String pvcName,String namespace,String appName,String mountPath) throws VenusException;
    public Boolean scalePersistentVolumeClaim(String pvcName,String namespace,String reqStorageSize) throws VenusException;
    public Boolean deletePersistentVolumeClaims(PersistentVolumeClaim persistentVolumeClaim)throws VenusException;
    public Boolean createPersistentVolumeClaims(String pvcName,String namespace,String pvcAccessMode,String reqStorageSize)throws VenusException;
}
